<%@page import="bean.vtableVo"%>
<%@page import="bean.vtableDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>view.jsp</title>
<link rel ='stylesheet' href ="./css/one.css"/>
<script src="./js/one.js"></script>
</head>
<body>
<jsp:useBean id="vo" class = "bean.vtableVo" scope = "page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>
<%
vtableDTO dto = new vtableDTO();
dto.setVo(vo);
vtableVo v = dto.selectOne();

String m="";
if(session.getAttribute("sessionMid")!=null){
	m = (String)session.getAttribute("sessionMid");
}
%>
<h1>한마디 보기</h1>

<div id='view'>
	<div id='id'> 아이디</div><div id='mid'><%=v.getMid()%></div>
	<div id='date'>작성 일자</div><div id='sysdate'><%= v.getSysdate7() %></div>
	<div id='cont'>내용</div><div id='content'><%=v.getContent() %></div>
</div>

<br/>

<form name="hiddenFrm" method="post"action ='index.jsp?inc=./one/input_result.jsp'>
	<input type ='hidden' value ='<%= v.getMid() %>' name = 'mid' id='smid'/>	
	<input type='hidden' name='rno' value='<%=vo.getRno()%>'/>
	<input type='hidden' name='nowPage' value='<%=vo.getNowPage()%>'/>
	<input type='hidden' name='find' value='<%=vo.getFind()%>'/>
</form>
<input type ='button' value ='한마디 작성' id = 'btnInput'/>
<input type ='button' value ='삭제' 		id = 'btnDelete'/>
<input type ='button' value ='목록가기' 	id = 'btnList'/>

</body>
<script>viewInit();</script>
</html>